package com.central.modules.sys.model;

import com.central.common.validator.group.AddGroup;
import com.central.common.validator.group.DefaultGroup;
import com.central.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@Data
public class AddSysNoticeRequest  implements Serializable {

    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    private Long id;
    @NotBlank(message = "{title.require}", groups = DefaultGroup.class)
    private String title; //标题
    @NotBlank(message = "{imageUrl.require}", groups = DefaultGroup.class)
    private String imageUrl;  //封面图

    private String htmlUrl;    //广告网页

    private String remark;  //备注
    @NotBlank(message = "{type.require}", groups = DefaultGroup.class)
    private String type; //类型
}
